package com.lh.createData.unit;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;


@Component
@RefreshScope
public class GetPropertiesClass {
    @Value("${server.port}")
    private String port;
    @Value("${spring.application.name}")
    private String springApplicationName;
    @Value("${liangHaoSign}")
    private String liangHaoSign;
    @Value("${pageJumpMax}")
    private int pageJumpMax;
    @Value("${userBeginTime}")
    private String userBeginTime;
    @Value("${userEndTime}")
    private String userEndTime;
    @Value("${minYearMonth}")
    private String minYearMonth;
    @Value("${maxYearMonth}")
    private String maxYearMonth;
    @Value("${deleteLogMonthCount}")
    private int deleteLogMonthCount;

    /**
     * 得到删除日志历史月份数
     *
     * @return 得到删除日志历史月份数
     */
    public int getDeleteLogMonthCount() {
        return deleteLogMonthCount;
    }

    public String getMinYearMonth() {
        return minYearMonth;
    }

    public String getMaxYearMonth() {
        return maxYearMonth;
    }

    public String getUserBeginTime() {
        return userBeginTime;
    }

    public String getUserEndTime() {
        return userEndTime;
    }

    public int getPageJumpMax() {
        return pageJumpMax;
    }

    /**
     * 得到端口号
     *
     * @return
     */
    public String getPort() {
        return this.port;
    }

    /**
     * 得到微服务名称
     *
     * @return
     */
    public String getApplicationName() {
        return this.springApplicationName;
    }

    /**
     * 自定义测试标识
     *
     * @return
     */
    public String getLiangHaoSign() {
        return this.liangHaoSign;
    }
}
